﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WcMatch.Migrations
{
    /// <inheritdoc />
    public partial class update20230519 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "CanPubJob",
                table: "T_User_Company",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "IdCardPath",
                table: "T_User_Company",
                type: "longtext",
                nullable: true,
                collation: "utf8_general_ci")
                .Annotation("MySql:CharSet", "utf8");

            migrationBuilder.AddColumn<DateTime>(
                name: "PubJobDate",
                table: "T_User_Company",
                type: "datetime(6)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SqPath",
                table: "T_User_Company",
                type: "longtext",
                nullable: true,
                collation: "utf8_general_ci")
                .Annotation("MySql:CharSet", "utf8");

            migrationBuilder.AddColumn<string>(
                name: "ZzPath",
                table: "T_User_Company",
                type: "longtext",
                nullable: true,
                collation: "utf8_general_ci")
                .Annotation("MySql:CharSet", "utf8");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CanPubJob",
                table: "T_User_Company");

            migrationBuilder.DropColumn(
                name: "IdCardPath",
                table: "T_User_Company");

            migrationBuilder.DropColumn(
                name: "PubJobDate",
                table: "T_User_Company");

            migrationBuilder.DropColumn(
                name: "SqPath",
                table: "T_User_Company");

            migrationBuilder.DropColumn(
                name: "ZzPath",
                table: "T_User_Company");
        }
    }
}
